import request from '@/utils/request'

// 查询厂商
export function getManufacturer (data) {
  return request({
    url: '/manufacturer/getList',
    method: 'get',
    params: data,
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded',
      'Authorization': window.localStorage.getItem('token'),
    }
  })
}

// 新增厂商
export function addManufacturer (data) {
  return request({
    url: '/manufacturer/insert',
    method: 'get',
    params: data,
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded',
      'Authorization': window.localStorage.getItem('token'),
    }
  })
}



// 删除厂商
export function deleteManufacturer (data) {
  return request({
    url: '/manufacturer/delManu',
    method: 'get',
    params: data,
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded',
      'Authorization': window.localStorage.getItem('token'),
    }
  })
}